﻿namespace FileTransfer.Except
{
    public enum TransferCode
    {
        /// <summary>
        /// 成功
        /// </summary>
        Success = 200,
        /// <summary>
        /// 失败
        /// </summary>
        Error = -1,
        /// <summary>
        /// 未知错误
        /// </summary>
        UnKnownErr = 400,
        /// <summary>
        /// 服务拒绝
        /// </summary>
        ServiceRefuse = 401,
        /// <summary>
        /// 认证失败
        /// </summary>
        AuthFailed = 402,
        /// <summary>
        /// 权限拒绝
        /// </summary>
        PermissionDenied = 403,
        /// <summary>
        /// 下载地址异常
        /// </summary>
        AddressErr = 404,
        /// <summary>
        /// 文件不存在
        /// </summary>
        FileNotFound = 405,
        /// <summary>
        /// 下载任务超时
        /// </summary>
        DownTimeOut = 406,
        /// <summary>
        /// 下载任务失败
        /// </summary>
        DownErr = 407,
        /// <summary>
        /// 文件验证失败
        /// </summary>
        FileCheckErr = 408,
        /// <summary>
        /// 本地存储空间不足
        /// </summary>
        LocalSpaceOut = 409,
        /// <summary>
        /// 本地目录创建失败
        /// </summary>
        CreateLocalDirErr = 410,
        /// <summary>
        /// 不符合下载规范
        /// </summary>
        NotAllowDownErr = 411,
    }
}
